<template>
  <div id="app">
    <Sidebar />
    <Home />
    <main>
      <router-view />
    </main>
  </div>
</template>

<script>
import Sidebar from './components/Sidebar.vue';
import Home from './components/Home.vue'
export default {
  name: 'App',
  components: {
    Sidebar
  }
}
</script>

<style>
main {
  margin-left: 50px; /* 侧边栏的宽度 */
  padding:10px;
  transition: margin-left 0.3s ease-in-out;
}
</style>